package com.yanqu.road.entity.activity.unionwar.cross;

import com.alibaba.fastjson.annotation.JSONField;
import com.yanqu.road.entity.player.UserBaseInfo;
import com.yanqu.road.utils.BigIntegerDeserializer;

import java.math.BigInteger;

public class UnionWarUserData {
    private long userId;                    //玩家编号
    private UserBaseInfo userBaseInfo;      //玩家信息
    private int position;                   //玩家职位
    private int useItemId;                  //使用锦囊id
    @JSONField(deserializeUsing = BigIntegerDeserializer.class)
    private BigInteger donateSilver = BigInteger.ZERO;     //捐赠银两
    private long modifyTime;                //变更时间
    private boolean isQuitUnion;            //是否退出商会

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public UserBaseInfo getUserBaseInfo() {
        return userBaseInfo;
    }

    public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
        this.userBaseInfo = userBaseInfo;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int getUseItemId() {
        return useItemId;
    }

    public void setUseItemId(int useItemId) {
        this.useItemId = useItemId;
    }

    public BigInteger getDonateSilver() {
        return donateSilver;
    }

    public void setDonateSilver(BigInteger donateSilver) {
        this.donateSilver = donateSilver;
    }

    public long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public boolean isQuitUnion() {
        return isQuitUnion;
    }

    public void setQuitUnion(boolean quitUnion) {
        isQuitUnion = quitUnion;
    }
}
